package com.zyz.G_常用类.包装类;

/**
 * @author: vick
 * @Date: 2025/3/18
 * @Description:
 * @version: 1.0
 */
//包装类 ==》 基本数据类型
public class PackageToBasics {
    public static void main(String[] args) {
        //自动拆箱
        Integer num2 = 20;
        int num = num2;

        Boolean b1 = false;
        boolean b2 = b1;


        // 调用 xxxValue
        Integer num3 = new Integer(20);
        int i = num3.intValue();
        System.out.println(i);

        Boolean b = new Boolean(false);
        boolean b3 = b.booleanValue();
        System.out.println(b3);
    }
}
